<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>购买软件</title>
<style type="text/css">
body {
	font-size: 12px;
}
h1 {
	color: #494949;
	font-size: 25px;
	font-weight: 700;
	line-height: 1.1em;
}

label {
	color: #006600;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 14px;
	line-height: 120%;
}

label.pure {
	color: #111111;
	font-size: 12px;
}

input {
	font-size: 12px;
	margin-right: 3px;
}

span.pl {
	color: #666666;
	font-size: 12px;
	line-height: 150%;
}

ul.errorMessage,ul.errorMessage li {
	display: inline;
	margin: 0px;
	padding: 0px;
	font-size: 12px;
	color: #FF3300;
}

#wrapper {
	margin: 0 auto;
	width: 950px;
}

a {
	text-decoration: none;
	color: #336699;
}

a:hover {
	text-decoration: underline;
}
div.item {
	border-bottom: 1px solid #EEEEEE;
	margin: 5px 0px;
	padding: 5px 0px;
	min-height: 55px;
}

div.desc {
	padding: 5px 28px;
	color: #666666;
	font-size: 12px;
	line-height: 162%;
}

div.oper {
	margin-left: 28px;
}
table.price td {
	text-align:center;
	display:inline;
}
</style>
<s:head />
</head>
<body>
<div id="wrapper">
<h1>购买软件</h1>
<s:form action="buyapp">
	<div class="item"><span class="title"><s:property value="software.name" /></span>
	<div class="desc"><s:property value="software.description" /></div>
	<br />
	<div class="oper">开发者：<s:a href="#" target="_blank"><s:property value="developer.name" /></s:a></div>
	</div>
	选择价格方案：
	<s:if test="pricingStrategys.size()==0">
	<span class="pl">此软件没有提供价格方案，无法购买</span>
	</s:if> <s:else>
	<s:radio name="pricingStrategy.id" list="pricingStrategys" listKey="id" listValue="price+'元/'+amount+(unit==\"M\"?\"月\":unit==\"D\"?\"天\":unit)"/>
	</s:else>
	<br />
	<br />
	
	<s:submit value="支付费用" />
	<input type="button" value="取消" onclick="window.location.href='<s:url action="applist"/>';" />
</s:form></div>
</body>
</html>